#include "stdafx.h"
#include "XMLHelper.h"

#import "C:\windows\system32\msado15.dll" rename_namespace("MSXML")

/*
_bstr_t XmlHelper::ParseXMLData(_bstr_t xml)
{
  //BSTR retval; 

  VARIANT_BOOL b;
  HRESULT hr;
  IXMLDOMDocumentPtr pXMLDOMDoc; 
  IXMLDOMNodePtr pXMLDOMNode = NULL;
  IXMLDOMNodeListPtr pXMLDOMNodeList = NULL;
  pXMLDOMDoc.CreateInstance(__uuidof(DOMDocument));
  pXMLDOMDoc->put_async(false);
  pXMLDOMDoc->put_resolveExternals(false);
  //hr = pXMLDOMDoc->loadXML(xml, &b);
  hr = pXMLDOMDoc->selectNodes(_bstr_t("//body/*"), &pXMLDOMNodeList);
  hr = pXMLDOMNodeList->get_item(0, &pXMLDOMNode);
  hr = pXMLDOMNode->get_xml(&retval);

  //_bstr_t(retval).copy();
  return _bstr_t("").copy();
}

*/